# -*- coding: UTF-8 -*- #
"""
@filename:01-6-2画曲线图.py
@author:JiYujia
@time:2022-09-05
"""
import numpy as np
import matplotlib.pylab as plt

t = np.arange(0.0, 2.0, 0.01)
s = 1 + np.sin(2 * np.pi * t)

fig, ax = plt.subplots()
ax.plot(t, s)

ax.set(xlabel='time(s)', ylabel='voltage(mv)', title='simple test')

ax.grid()
fig.savefig('pics/01-6.png')
plt.show()

plt.show()
